package com.study.myteach.适配器模式;

import com.study.myteach.适配器模式.pack1.ILog;
import com.study.myteach.适配器模式.pack2.LogAdaptee;

/**
 * @author lk
 * @date 2021/4/3 0003 15:18
 * @description:
 */
public class LogAdapter implements ILog {

    private LogAdaptee log;

    public LogAdapter(LogAdaptee log) {
        this.log = log;
    }

    @Override
    public void write() {
        log.writeLog();
    }
}
